﻿using System.Linq.Expressions;

namespace Rj.PersonnelVerification.Server.Repositories
{
    public interface IHisRepository
    {
        IEnumerable<T> QueryByExample<T>(Expression<Func<T,bool>> action) where T : class;
        Task<IEnumerable<T>> QueryByExampleAsync<T>(Expression<Func<T,bool>> action) where T : class;
        T QuerybyPrimaryKey<T>(params object[] keyValues) where T : class;
        Task<T> QuerybyPrimaryKeyAsync<T>(params object[] keyValues) where T : class;
    }
}
